package cat.service.impl;
				import javax.annotation.Resource;
				import org.springframework.stereotype.Service;
				import cat.entity.User;
				import cat.mapper.UserMapper;
				import cat.service.UserService;
				
				/**
				 * User业务层接口的实现类
				 * @author Administrator
				 */
				@Service  //一定不要忘了这个注解
				public class UserServiceImpl implements UserService {
					
					@Resource  //还有这个注解
					private UserMapper userMapper;
				
					@Override
				public User getUserByNameOrEmail(String s) {
						return userMapper.getUserByNameOrEmail(s);
					}	
				}